package com.itheima.reggie.service;

import com.itheima.reggie.entity.*;
import com.itheima.reggie.entity.dto.DishDto;
import com.itheima.reggie.entity.dto.SetmealDishDto;
import com.itheima.reggie.entity.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetmealService {

    @Transactional
    void save(SetmealDto setmealDto);

    R<Page<SetmealDto>> findByPage(Integer page, Integer pageSize, String name);

    @Transactional
    void delete(Long[] ids);

    R<SetmealDto> findBySetmealId(Long setmealId);

    @Transactional
    void update(SetmealDto setmealDto);

    void updateStatus(List<Long> ids,int status);

    List<Setmeal> findByCategoryId(Long categoryId, int status);

    R<List<Dish>> getBySetmealId(Long id);
}
